<template>
	<view class="main-box" @click="back">
		<image mode="widthFix" class="bg-img" src="https://h5.sx2b2c.com/images/common/404.jpg"></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
conunt:0
			};
		},
		methods:{
			back(){
				if(this.conunt<9){
					this.conunt+=1
				
				}else{
					console.log('跳转')
					
						if(uni.getStorageSync('currentRoute')){
							uni.redirectTo({
								url:'/'+uni.getStorageSync('currentRoute')
							})
						}
				}
				console.log(this.conunt)
	
			}
		}
	}
</script>

<style lang="scss">
	.main-box {
		display: flex;
		justify-content: center;
		align-items: center;
		background-color: #000000;
		height: 100vh;

		.bg-img {
			display: block;
			width: 100%;
			height: auto;
		}
	}
</style>